package com.broadsoft.cluster.smartcluster.context;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
 

public class ExecutionContext {

    private static final Logger logger = LoggerFactory.getLogger(ExecutionContext.class);

    private static ThreadLocal<ContextData> context = new ThreadLocal<ContextData>();

    public static void createContext() {
        context.set(new ContextData());
    }//end of createContext

    public static void releaseContext() {
        ContextData contextData = context.get();
        if (contextData != null) {
            context.set(null);
        }
    }//end of releaseContext
    
    
 
    
    
}
